package com.company.cloud.crm.modules.api.service;

import com.company.cloud.common.bean.BaseClientResult;
import com.company.cloud.crm.modules.api.request.CustomerNumStatisticsRequest;
import com.company.cloud.crm.modules.api.response.CustomerNumStatisticsResponse;
import com.company.common.server.constant.ServiceNameConstant;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;

import com.company.cloud.crm.modules.api.fallback.CrmRemoteServiceFallbackFactory;
import com.company.cloud.crm.modules.api.request.Contact2UserAddRequest;
import com.company.cloud.crm.modules.api.response.Contact2UserAddResponse;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(contextId = "crm-saas", name = ServiceNameConstant.crm_center, fallbackFactory = CrmRemoteServiceFallbackFactory.class)
public interface CrmRemoteService {
	
	/**新增客户联络人*/
	@RequestMapping(value = "/remote/crm/addContact2User", method = RequestMethod.POST)
	public BaseClientResult<Contact2UserAddResponse> addContact2User(@RequestBody Contact2UserAddRequest params);

	/**用户客户数统计*/
	@RequestMapping(value = "/remote/crm/customerNumStatistics", method = RequestMethod.POST)
	public BaseClientResult<CustomerNumStatisticsResponse> customerNumStatistics(@RequestBody CustomerNumStatisticsRequest params);
	
}
